/*
 * Copyright/Licensing information.
 */

/* inclusion guard */
#ifndef __ECV_FILTER_H__
#define __ECV_FILTER_H__

/*
 * Glib includes
 */
#include <glib-object.h>
//#include <gio.h>

/*
 * Potentially, include other headers on which this header depends.
 */

#include <stdio.h>

/*
 * Type macros.
 */
#define ECV_TYPE_FILTER                  (ecv_filter_get_type ())
#define ECV_FILTER(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), ECV_TYPE_FILTER, EcvFilter))
#define ECV_IS_FILTER(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ECV_TYPE_FILTER))
#define ECV_FILTER_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), ECV_TYPE_FILTER, EcvFilterClass))
#define ECV_IS_FILTER_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), ECV_TYPE_FILTER))
#define ECV_FILTER_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), ECV_TYPE_FILTER, EcvFilterClass))

typedef struct _EcvFilter        EcvFilter;
typedef struct _EcvFilterClass   EcvFilterClass;
typedef struct _EcvFilterPrivate EcvFilterPrivate;

struct _EcvFilter
{
  GObject parent_instance;

  /*< public >*/

  /*< private >*/
  EcvFilterPrivate *priv;
};

struct _EcvFilterClass
{
  GObjectClass parent_class;

  /* class members */
  /*< public >*/


  //------------------------------------------------
  /*                   virtual                    */
  void (*create) (EcvFilter *self);
  void (*process) (EcvFilter *self);
};

/* used by ECV_TYPE_FILTER */
GType ecv_filter_get_type (void);

/*
 * Method definitions.
 */

void
ecv_filter_process (EcvFilter *self);

void
ecv_filter_create (EcvFilter *self);

int
ecv_filter_set (EcvFilter *self, char * data, int size);

char *
ecv_filter_get_data (EcvFilter *self);

int
ecv_filter_get_data_size (EcvFilter *self);

EcvFilter * 
ecv_filter_new (int width, int height, int bpp);


#endif /* __ECV_FILTER_H__ */
